package com.ethink.warehouse.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.warehouse.api.info.MateInventoryOtherInLogDetailInfo;
import com.ethink.warehouse.api.request.MateInventoryOtherInLogDetailQueryRequest;
import com.ethink.warehouse.common.entity.MateInventoryOtherInLogDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 其他入库明细 Mapper接口
 *
 * @author default
 * @date 2023-02-09
 */
@Mapper
public interface MateInventoryOtherInLogDetailMapper extends BaseMapper<MateInventoryOtherInLogDetail> {

    /**
     * 分页查询
     *
     * @param buildPage
     * @param request
     * @return
     */
    Page<MateInventoryOtherInLogDetailInfo> queryMateInventoryOtherInLogDetail(Page buildPage, @Param("request") MateInventoryOtherInLogDetailQueryRequest request);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    MateInventoryOtherInLogDetailInfo getMateInventoryOtherInLogDetailById(@Param("id") Long id);

    /**
     * 列表查询
     *
     * @param request
     * @return
     */
    List<MateInventoryOtherInLogDetailInfo> listMateInventoryOtherInLogDetail(@Param("request") MateInventoryOtherInLogDetailQueryRequest request);

}